package p06.p3;

/**
 * Created by wy on 7/14/2017.
 */
public class StudentBean {
   private String name;
    private int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        if (age <=100){
            this.age = age;
        }else {
            this.age = age+1000000;
        }

    }
}
